package com.apress.springrecipes.shop;

public class Battery extends Product {
	private boolean rechargeable;
	
	public Battery(){
		super();
	}
	public Battery(String name,double price){
		super(name,price);
	}
	public boolean isRechargeable() {
		return rechargeable;
	}
	public void setRechargeable(boolean rechargeable) {
		this.rechargeable = rechargeable;
	}
	@Override
	public String toString() {
		return super.toString()+"Battery [rechargeable=" + rechargeable + "]";
	}
	
}
